package com.by.mapper;

import com.by.pojo.dto.ProductPageQueryDTO;
import com.by.pojo.entity.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductManageMapper {

    int save(Product product);

    int update(Product product);

    int delete(Integer id);

    List<Product> query(ProductPageQueryDTO productPageQueryDTO);

    Product selectById(Integer id);
}
